package com.dhh.vo;

public class FoodLog {
	public static String C_ID = "_id";
	public static String C_FOOD_NAME = "FOOD_NAME";
	public static String C_FOOD_GROUP = "FOOD_GROUP";
	public static String C_SERVING = "SERVING";
	public static String C_ENERGY = "ENERGY";
	public static String C_PERIOD = "PERIOD";
	public static String C_DATE = "DATE";
	public static String C_QUATITY = "QUATITY";
	public static String C_PLAN_ENERGY = "plan_energy";
	
	private String id;
	private String foodName;
	private String foodGroup;
	private String energy;
	private String date;
	private String serving;
	private String period;
	private String quatity;
	private String planEnergy;
	
	public String getPlanEnergy() {
		return planEnergy;
	}
	public void setPlanEnergy(String planEnergy) {
		this.planEnergy = planEnergy;
	}
	public String getQuatity() {
		return quatity;
	}
	public void setQuatity(String quatity) {
		this.quatity = quatity;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public String getFoodGroup() {
		return foodGroup;
	}
	public void setFoodGroup(String foodGroup) {
		this.foodGroup = foodGroup;
	}
	public String getEnergy() {
		return energy;
	}
	public void setEnergy(String energy) {
		this.energy = energy;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getServing() {
		return serving;
	}
	public String getServingUnit() {
		String unit = "cups";
		if("Grains".equalsIgnoreCase(getFoodGroup()) || "Protein Food".equalsIgnoreCase(getFoodGroup())){
			unit = "oz";
		}else{
			
		}
		return serving+" "+unit;
	}
	public void setServing(String serving) {
		this.serving = serving;
	}
	public String getPeriod() {
		return period;
	}
	public void setPeriod(String period) {
		this.period = period;
	}
	
	
	public static String[] getColumns(){
		return new String[]{C_ID,C_DATE,C_SERVING,C_FOOD_NAME,C_FOOD_GROUP,C_ENERGY,C_PERIOD,C_QUATITY,C_PLAN_ENERGY};
	}
}
